<div id="box" >
	<div class="padding">
		<table id="tickettable" class="tablesorter">
			<thead>
				<tr class="header">
					<th width="15%">Projekt</th><th width="10%">Ersteller</th><th>Titel</th><th width="10%">Status</th><th width="10%">Fällig am</th><th width="15%">Aktion</th>
				</tr>
			</thead>
			<tbody>
				<?php 
				foreach($this->tickets as $ticket) { ?>
				<tr class="trow">
					<td><?php if($ticket['pid'] != 0) print($ticket['ptitle']); else print("(ohne Projekt)"); ?></td>
					<td><?php print($ticket['ownerid']); ?></td>
					<td><?php print($ticket['ttitle']); ?></td>
					<td><?php print($ticket['status']); ?></td>
					<td><?php print(date("d.m.Y",$ticket['deadline'])); ?></td>
					<td>
						<a href="/<?= Zend_Registry::get('Zend_Locale') ?>/tickets/edit/tid/<?= $ticket['tid'] ?>">bearbeiten</a> | 
						<a href="/<?= Zend_Registry::get('Zend_Locale') ?>/tickets/delete/tid/<?= $ticket['tid'] ?>">löschen</a></td>
				</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>